<!-- HTML header for doxygen 1.8.13-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="icon" type="image/x-icon" href="favicon.ico" />
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>chigraph: chi::NamedDataType Struct Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="chigraphDoxygenIcon.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">chigraph
   &#160;<span id="projectnumber">master</span>
   </div>
   <div id="projectbrief">Systems programming language written for beginners in LLVM</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('structchi_1_1NamedDataType.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="#related">Related Functions</a> &#124;
<a href="structchi_1_1NamedDataType-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">chi::NamedDataType Struct Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Basicaly a std::pair&lt;std::string, DataType&gt;, except it has nicer names.  
 <a href="structchi_1_1NamedDataType.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="DataType_8hpp_source.html">chi/DataType.hpp</a>&gt;</code></p>
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="closed.png" alt="+"/> Collaboration diagram for chi::NamedDataType:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center"><iframe scrolling="no" frameborder="0" src="structchi_1_1NamedDataType__coll__graph.svg" width="242" height="218"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a2cf49481c5d9ac22f108bfeac56e2990"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structchi_1_1NamedDataType.html#a2cf49481c5d9ac22f108bfeac56e2990">NamedDataType</a> (std::string n={}, <a class="el" href="structchi_1_1DataType.html">DataType</a> ty={})</td></tr>
<tr class="memdesc:a2cf49481c5d9ac22f108bfeac56e2990"><td class="mdescLeft">&#160;</td><td class="mdescRight">Construct a <a class="el" href="structchi_1_1NamedDataType.html" title="Basicaly a std::pair&lt;std::string, DataType&gt;, except it has nicer names. ">NamedDataType</a> from the name and the type.  <a href="#a2cf49481c5d9ac22f108bfeac56e2990">More...</a><br /></td></tr>
<tr class="separator:a2cf49481c5d9ac22f108bfeac56e2990"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab3bb8be23239d44df3706f3cb6ce9fdf"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structchi_1_1NamedDataType.html#ab3bb8be23239d44df3706f3cb6ce9fdf">valid</a> () const</td></tr>
<tr class="memdesc:ab3bb8be23239d44df3706f3cb6ce9fdf"><td class="mdescLeft">&#160;</td><td class="mdescRight">See if the pair is valid.  <a href="#ab3bb8be23239d44df3706f3cb6ce9fdf">More...</a><br /></td></tr>
<tr class="separator:ab3bb8be23239d44df3706f3cb6ce9fdf"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:adf236ddb65e4e492f8141bdd6bc14cab"><td class="memItemLeft" align="right" valign="top"><a id="adf236ddb65e4e492f8141bdd6bc14cab"></a>
std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structchi_1_1NamedDataType.html#adf236ddb65e4e492f8141bdd6bc14cab">name</a></td></tr>
<tr class="memdesc:adf236ddb65e4e492f8141bdd6bc14cab"><td class="mdescLeft">&#160;</td><td class="mdescRight">The name. <br /></td></tr>
<tr class="separator:adf236ddb65e4e492f8141bdd6bc14cab"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af2aeae4e6a7a95d6d116a0ad12eb4ecd"><td class="memItemLeft" align="right" valign="top"><a id="af2aeae4e6a7a95d6d116a0ad12eb4ecd"></a>
<a class="el" href="structchi_1_1DataType.html">DataType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structchi_1_1NamedDataType.html#af2aeae4e6a7a95d6d116a0ad12eb4ecd">type</a></td></tr>
<tr class="memdesc:af2aeae4e6a7a95d6d116a0ad12eb4ecd"><td class="mdescLeft">&#160;</td><td class="mdescRight">The type. <br /></td></tr>
<tr class="separator:af2aeae4e6a7a95d6d116a0ad12eb4ecd"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="related"></a>
Related Functions</h2></td></tr>
<tr><td class="ititle" colspan="2"><p>(Note that these are not member functions.) </p>
</td></tr>
<tr class="memitem:a01bc75acad89fce92cb5c93323ff4c2d"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structchi_1_1NamedDataType.html#a01bc75acad89fce92cb5c93323ff4c2d">operator!=</a> (const <a class="el" href="structchi_1_1NamedDataType.html">NamedDataType</a> &amp;lhs, const <a class="el" href="structchi_1_1NamedDataType.html">NamedDataType</a> &amp;rhs)</td></tr>
<tr class="memdesc:a01bc75acad89fce92cb5c93323ff4c2d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Check if two <a class="el" href="structchi_1_1NamedDataType.html" title="Basicaly a std::pair&lt;std::string, DataType&gt;, except it has nicer names. ">NamedDataType</a> objects aren't equal.  <a href="#a01bc75acad89fce92cb5c93323ff4c2d">More...</a><br /></td></tr>
<tr class="separator:a01bc75acad89fce92cb5c93323ff4c2d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a080914269173bb83b2ebf0ac622b66a0"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structchi_1_1NamedDataType.html#a080914269173bb83b2ebf0ac622b66a0">operator==</a> (const <a class="el" href="structchi_1_1NamedDataType.html">NamedDataType</a> &amp;lhs, const <a class="el" href="structchi_1_1NamedDataType.html">NamedDataType</a> &amp;rhs)</td></tr>
<tr class="memdesc:a080914269173bb83b2ebf0ac622b66a0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Check if two <a class="el" href="structchi_1_1NamedDataType.html" title="Basicaly a std::pair&lt;std::string, DataType&gt;, except it has nicer names. ">NamedDataType</a> objects are equal.  <a href="#a080914269173bb83b2ebf0ac622b66a0">More...</a><br /></td></tr>
<tr class="separator:a080914269173bb83b2ebf0ac622b66a0"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Basicaly a std::pair&lt;std::string, DataType&gt;, except it has nicer names. </p>

<p class="definition">Definition at line <a class="el" href="DataType_8hpp_source.html#l00072">72</a> of file <a class="el" href="DataType_8hpp_source.html">DataType.hpp</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a2cf49481c5d9ac22f108bfeac56e2990"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2cf49481c5d9ac22f108bfeac56e2990">&#9670;&nbsp;</a></span>NamedDataType()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">chi::NamedDataType::NamedDataType </td>
          <td>(</td>
          <td class="paramtype">std::string&#160;</td>
          <td class="paramname"><em>n</em> = <code>{}</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structchi_1_1DataType.html">DataType</a>&#160;</td>
          <td class="paramname"><em>ty</em> = <code>{}</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Construct a <a class="el" href="structchi_1_1NamedDataType.html" title="Basicaly a std::pair&lt;std::string, DataType&gt;, except it has nicer names. ">NamedDataType</a> from the name and the type. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">n</td><td>The name </td></tr>
    <tr><td class="paramname">ty</td><td>The type </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="DataType_8hpp_source.html#l00076">76</a> of file <a class="el" href="DataType_8hpp_source.html">DataType.hpp</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="ab3bb8be23239d44df3706f3cb6ce9fdf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab3bb8be23239d44df3706f3cb6ce9fdf">&#9670;&nbsp;</a></span>valid()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool chi::NamedDataType::valid </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>See if the pair is valid. </p>
<dl class="section return"><dt>Returns</dt><dd>if it's valid </dd></dl>

<p class="definition">Definition at line <a class="el" href="DataType_8hpp_source.html#l00080">80</a> of file <a class="el" href="DataType_8hpp_source.html">DataType.hpp</a>.</p>

</div>
</div>
<h2 class="groupheader">Friends And Related Function Documentation</h2>
<a id="a01bc75acad89fce92cb5c93323ff4c2d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a01bc75acad89fce92cb5c93323ff4c2d">&#9670;&nbsp;</a></span>operator!=()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool operator!= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structchi_1_1NamedDataType.html">NamedDataType</a> &amp;&#160;</td>
          <td class="paramname"><em>lhs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structchi_1_1NamedDataType.html">NamedDataType</a> &amp;&#160;</td>
          <td class="paramname"><em>rhs</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">related</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Check if two <a class="el" href="structchi_1_1NamedDataType.html" title="Basicaly a std::pair&lt;std::string, DataType&gt;, except it has nicer names. ">NamedDataType</a> objects aren't equal. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">lhs</td><td>The first type </td></tr>
    <tr><td class="paramname">rhs</td><td>The type to compare to </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>if they aren't equal </dd></dl>

<p class="definition">Definition at line <a class="el" href="DataType_8hpp_source.html#l00103">103</a> of file <a class="el" href="DataType_8hpp_source.html">DataType.hpp</a>.</p>

</div>
</div>
<a id="a080914269173bb83b2ebf0ac622b66a0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a080914269173bb83b2ebf0ac622b66a0">&#9670;&nbsp;</a></span>operator==()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool operator== </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structchi_1_1NamedDataType.html">NamedDataType</a> &amp;&#160;</td>
          <td class="paramname"><em>lhs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structchi_1_1NamedDataType.html">NamedDataType</a> &amp;&#160;</td>
          <td class="paramname"><em>rhs</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">related</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Check if two <a class="el" href="structchi_1_1NamedDataType.html" title="Basicaly a std::pair&lt;std::string, DataType&gt;, except it has nicer names. ">NamedDataType</a> objects are equal. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">lhs</td><td>The first type </td></tr>
    <tr><td class="paramname">rhs</td><td>The type to compare to </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>if they are equal </dd></dl>

<p class="definition">Definition at line <a class="el" href="DataType_8hpp_source.html#l00094">94</a> of file <a class="el" href="DataType_8hpp_source.html">DataType.hpp</a>.</p>

<p class="reference">References <a class="el" href="DataType_8hpp_source.html#l00083">name</a>, and <a class="el" href="DataType_8hpp_source.html#l00086">type</a>.</p>

</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li>lib/core/include/chi/<a class="el" href="DataType_8hpp_source.html">DataType.hpp</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespacechi.html">chi</a></li><li class="navelem"><a class="el" href="structchi_1_1NamedDataType.html">NamedDataType</a></li>
    <li class="footer">Generated on Sat Sep 16 2017 17:41:35 for chigraph by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
  </ul>
</div>
</body>
</html>
